#通过登录获取公共的cookie
import requests
def cookie():
    logindate={'username':'sang','password':123}
    head={'Content-Type':'application/x-www-form-urlencoded'}
    login=requests.post('http://182.92.178.83:8081/login',data=logindate,headers=head,timeout=3)
    # print(login.cookies)
    cookie_dict=requests.utils.dict_from_cookiejar(login.cookies)
    cookie_date=cookie_dict['JSESSIONID']
    # print(cookie_date)
    return cookie_date
